
package com.badger.generator.convert;

import java.util.HashMap;
import java.util.Map;

/**
 * java类型的匹配
 * @author liqi
 *
 */
public class JdbcTypeFpc {
	
	public static Map<String,String> DATE_TYPE=new HashMap();

	static {
		DATE_TYPE.put("String", "VARCHAR");
		DATE_TYPE.put("Long", "NUMERIC");
		DATE_TYPE.put("Integer", "DECIMAL");//NUMERIC 类型是数字类型， Oracle 拥有，
		DATE_TYPE.put("Float", "DECIMAL");//DECIMAL 是ansisql 标准数据类型
		DATE_TYPE.put("Double", "DECIMAL");
		DATE_TYPE.put("Boolean", "VARCHAR");
		DATE_TYPE.put("byte[]", "VARBINARY");
		DATE_TYPE.put("Character", "VARCHAR");
		DATE_TYPE.put("Object", "VARCHAR");
		DATE_TYPE.put("Time", "TIMESTAMP");
		DATE_TYPE.put("Blob", "VARBINARY");
		DATE_TYPE.put("Clob", "VARBINARY");
		DATE_TYPE.put("Timestamp", "TIMESTAMP");
		DATE_TYPE.put("BigInteger", "DECIMAL");
		DATE_TYPE.put("BigDecimal", "DECIMAL");
		DATE_TYPE.put("LocalDate", "TIMESTAMP");
		DATE_TYPE.put("LocalTime", "TIMESTAMP");
		DATE_TYPE.put("LocalDateTime", "TIMESTAMP");
	}
}
